package com.ssn.visitor.shop;

import java.util.ArrayList;
import java.util.List;

public class ShopCar {
    private List<Product> shopCar = new ArrayList<>();

    public void accept(Visitor visitor){
        for (Product pro: shopCar) {
            pro.accept(visitor);
        }
    }

    public void add(Product product){
        shopCar.add(product);
    }
    public void remove(Product product){
        shopCar.remove(product);
    }
}
